#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

menubar = Menu(root)

def printItem():
    print 'add_separator'

filemenu = Menu(menubar, tearoff=0)

for k in ['Python', 'PHP', 'CPP', 'C', 'Java', 'JavaScript']:
    filemenu.add_command(label=k, command=printItem)
    filemenu.add_separator()

menubar.add_cascade(label='Language', menu=filemenu)

root['menu'] = menubar

root.mainloop()
